<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: plot_spline_1d Namespace Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="../../namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/dfb/namespaceplot__spline__1d.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">plot_spline_1d Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a86887568256c653a7a7def29a6ace034"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#a86887568256c653a7a7def29a6ace034">create_figures</a> (subfigure_width=480, subfigure_height=600, starting_figure_no=1, starting_col_index=0, starting_row_index=0, plot_configuration=<a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#a925d2000f4e7c37cb3ab61bd3e425e31">PLOT_HORIZONTALLY</a>)</td></tr>
<tr class="separator:a86887568256c653a7a7def29a6ace034"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a671c36e2d25e8a198644af07a180cf49"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#a671c36e2d25e8a198644af07a180cf49">PLOT_VERTICALLY</a> = 0</td></tr>
<tr class="separator:a671c36e2d25e8a198644af07a180cf49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a925d2000f4e7c37cb3ab61bd3e425e31"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#a925d2000f4e7c37cb3ab61bd3e425e31">PLOT_HORIZONTALLY</a> = 1</td></tr>
<tr class="separator:a925d2000f4e7c37cb3ab61bd3e425e31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe57e04c35909505c95ea2afb6a37dd3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#abe57e04c35909505c95ea2afb6a37dd3">num_figures</a> = 5</td></tr>
<tr class="separator:abe57e04c35909505c95ea2afb6a37dd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a86887568256c653a7a7def29a6ace034"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def plot_spline_1d.create_figures </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>subfigure_width</em> = <code>480</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>subfigure_height</em> = <code>600</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>starting_figure_no</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>starting_col_index</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>starting_row_index</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>plot_configuration</em> = <code><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html#a925d2000f4e7c37cb3ab61bd3e425e31">PLOT_HORIZONTALLY</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html#l00014">14</a> of file <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html">plot_spline_1d.py</a>.</p>
<div class="fragment"><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="../../d8/dfb/namespaceplot__spline__1d.html#a86887568256c653a7a7def29a6ace034">   14</a></span>&#160;<span class="keyword">def </span><a class="code" href="../../d8/dfb/namespaceplot__spline__1d.html#a86887568256c653a7a7def29a6ace034">create_figures</a>(subfigure_width=480, subfigure_height=600, starting_figure_no=1, starting_col_index = 0, starting_row_index=0, plot_configuration=PLOT_HORIZONTALLY):</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    figure_number = starting_figure_no</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    col_index = starting_col_index</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    row_index = starting_row_index</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    file_path = os.getcwd() + <span class="stringliteral">&quot;/../test_data/&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="comment">## read files</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    bspline = np.genfromtxt(file_path+<span class="stringliteral">&#39;bspline_1d.txt&#39;</span>, delimiter=<span class="keywordtype">None</span>, dtype=(float))</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    bs_t = np.genfromtxt(file_path+<span class="stringliteral">&#39;bs_time_1d.txt&#39;</span>, delimiter=<span class="stringliteral">&#39;\n&#39;</span>, dtype=(float))</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="comment">## plot bspline</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    fig = plt.figure(figure_number)</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    plt.get_current_fig_manager().window.wm_geometry(str(subfigure_width) + <span class="stringliteral">&quot;x&quot;</span> + str(subfigure_height) +  <span class="stringliteral">&quot;+&quot;</span> + str(subfigure_width*col_index) + <span class="stringliteral">&quot;+&quot;</span> + str(subfigure_height*row_index))</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    fig.canvas.set_window_title(<span class="stringliteral">&#39;bspline_pos_vel_acc&#39;</span>)</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">for</span> i <span class="keywordflow">in</span> range(3):</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        ax1 = plt.subplot(3, 1, i+1)</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        plt.plot(bs_t, bspline[:,i], <span class="stringliteral">&quot;b-&quot;</span>)</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        plt.grid(<span class="keyword">True</span>)</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    plt.xlabel(<span class="stringliteral">&#39;time (sec)&#39;</span>)</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">## increment figure number and index</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    figure_number += 1</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span> plot_configuration == PLOT_HORIZONTALLY:</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        col_index += 1</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordflow">elif</span> plot_configuration == PLOT_VERTICALLY:</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        row_index +=1</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        </div><div class="ttc" id="namespaceplot__spline__1d_html_a86887568256c653a7a7def29a6ace034"><div class="ttname"><a href="../../d8/dfb/namespaceplot__spline__1d.html#a86887568256c653a7a7def29a6ace034">plot_spline_1d.create_figures</a></div><div class="ttdeci">def create_figures(subfigure_width=480, subfigure_height=600, starting_figure_no=1, starting_col_index=0, starting_row_index=0, plot_configuration=PLOT_HORIZONTALLY)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d84/plot__spline__1d_8py_source.html#l00014">plot_spline_1d.py:14</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="abe57e04c35909505c95ea2afb6a37dd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int plot_spline_1d.num_figures = 5</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html#l00012">12</a> of file <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html">plot_spline_1d.py</a>.</p>

</div>
</div>
<a class="anchor" id="a925d2000f4e7c37cb3ab61bd3e425e31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int plot_spline_1d.PLOT_HORIZONTALLY = 1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html#l00009">9</a> of file <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html">plot_spline_1d.py</a>.</p>

</div>
</div>
<a class="anchor" id="a671c36e2d25e8a198644af07a180cf49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int plot_spline_1d.PLOT_VERTICALLY = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html#l00008">8</a> of file <a class="el" href="../../d8/d84/plot__spline__1d_8py_source.html">plot_spline_1d.py</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d8/dfb/namespaceplot__spline__1d.html">plot_spline_1d</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
